<template>
  <el-container>
    <el-header>
      <el-menu
        mode="horizontal"
      >
        <el-menu-item index="1">处理中心</el-menu-item>

        <el-menu-item index="2">
          <a href="https://news.sina.com.cn/" target="_blank">
          消息中心
          </a>
        </el-menu-item>
        <el-menu-item index="3">
          <a href="https://map.baidu.com/@12131874,4050973,13z" target="_blank">
          查看地址
          </a>
        </el-menu-item>
      </el-menu>
    </el-header>
    <!-- ---------------------------------------header End-------------------------------------------- -->
    <el-container>
      <el-aside width="300px">
        <el-row class="tac">
          <el-col :span="24">
            <el-menu
              background-color="#545c64"
              text-color="#fff"
              active-text-color="#ffd04b"
            >
              <el-menu-item index="1">
                <i class="el-icon-document"></i>
                <span slot="title" @click="cheweiController">车位管理</span>
              </el-menu-item>
              <el-menu-item index="2">
                <i class="el-icon-document"></i>
                <span slot="title" @click="userController">用户管理</span>
              </el-menu-item>
              <el-menu-item index="3" >
                <i class="el-icon-document"></i>
                <span slot="title" @click="ordersController">订单管理</span>
              </el-menu-item>
              <el-menu-item index="4">
                <i class="el-icon-setting"></i>
                <span slot="title" @click="adminController">个人中心</span>
              </el-menu-item>
            </el-menu>
          </el-col>
        </el-row>
      </el-aside>
      <!-- -------------------------------------aside End-------------------------------- -->
      <el-main>
        <router-view />
      </el-main>
    </el-container>
  </el-container>
</template>

<script>
export default {
  data() {
    return {
     
    };
  },
  methods: {
    //车位管理
    cheweiController(){
      this.$router.push("/Home/Chewei");
    },

    // 用户管理
    userController(){
      this.$router.push("/Home/User");
    },
    // 订单管理
    ordersController(){
      this.$router.push("/Home/Orders");
    },
    // 个人中心
    adminController(){

    }
  },
};
</script>

<style scoped>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  text-align: center;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  text-align: center;
  line-height: 200px;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
}

body > .el-container {
  margin-bottom: 40px;
}

.el-container:nth-child(5) .el-aside,
.el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
</style>